<?php
class Model_EnderecoDAO extends ORM{
	
	/***************
	   DATABASE   
	***************/
	protected $_table_name  = 'Endereco';
	protected $_table_names_plural = FALSE;
	protected $_primary_key = 'idEndereco';
	protected $_primary_val = 'rua';
	
	protected $_belongs_to = array('Candidato' => array('model' => 'CandidatoDAO', 'foreign_key' => 'endereco_idEndereco'));
	
}

?>